#include "StdAfx.h"
#include "Operator.h"
#include "QueueEntity.h"
#include <boost/shared_ptr.hpp>

Operator::Operator(void)
{
	this->state = NORMAL;
}


Operator::~Operator(void)
{

}
OperatorState Operator::getOperatorState(void)
{
	return this->state;
}
void Operator::setOperatorState(OperatorState operatorState)
{
	this->state = operatorState;
}
#ifdef DEBUG
void Operator::setId(std::string id)
{
	this->id = id;
}
std::string Operator::getId(void)
{
	return this->id;
}
#endif

void Operator::addInputQueue(boost::shared_ptr<QueueEntity> queueEntity)
{
	this->inputQueueList.push_back(queueEntity);
}
std::list<boost::shared_ptr<QueueEntity> >& Operator::getInputQueueList(void)
{
	return this->inputQueueList;
}
void Operator::addOutputQueue(boost::shared_ptr<QueueEntity> queueEntity)
{
	this->outputQueueList.push_back(queueEntity);
}
std::list<boost::shared_ptr<QueueEntity> >& Operator::getOutputQueueList(void)
{
	return this->outputQueueList;
}